<!DOCTYPE html>
<html lang="zh">
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>工作日志</title>
    <link rel="icon" href="favicon.ico" type="images/ico">
    <meta name="author" content="dc">
    <link rel="stylesheet" type="text/css" href="/css/materialdesignicons.min.css">
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="/css/animate.min.css">
    <link rel="stylesheet" type="text/css" href="/css/style.min.css">
    <link href="/js/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="/js/jquery-confirm/jquery-confirm.min.css"/>
    <!--时间选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css">
    <!--日期选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datepicker/bootstrap-datepicker3.min.css">
    <!-- 多选下拉 -->
    <link rel="stylesheet" href="/css/bootstrap-select.css" type="text/css"/>

    <link rel="stylesheet" href="/css/skin.css">

    <!--编辑器-->
    <link rel="stylesheet" href="/css/froala_editor.min.css" />
    <link rel="stylesheet" href="/css/froala_editor.pkgd.min.css" />
    <link rel="stylesheet" href="/css/bootstrapValidator.min.css" />
<!--    <link rel="stylesheet" href="/css/situationAware/spiderDataForm.css">-->
</head>
<body>

    <div class="container-fluid p-t-15">
        <div class="row">
            <div class="col-sm-12">
                <div class="card">
                    <div class="card-header">
                        <h1>工作日志</h1>
                    </div>
                    <div class="card-body">
<!--                        <div id="screenBox" class="selector-box">-->
<!--                            <dl class="box1">-->
<!--                                <input type="hidden" id="industry">-->
<!--                                <dt>类型：</dt>-->


<!--                                <dd><a href="JavaScript:void(0);" class="active"  id="unlimited">不限</a></dd>-->
<!--&lt;!&ndash;                                onclick="searchCustomerPoolList(this, 0,'')"&ndash;&gt;-->

<!--                            </dl>-->
<!--                            <dl class="box2">-->
<!--                                <input type="hidden" id="provinceId">-->
<!--                                <dt>时间区间：</dt>-->

<!--                                <dd><a href="JavaScript:void(0);" class="active" >不限</a></dd>-->
<!--&lt;!&ndash;                                onclick="searchCustomerPoolList(this, 1,'')"&ndash;&gt;-->
<!--                            </dl>-->
<!--                        </div>-->

                        <div class="row content-action">
                            <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
                                <!--全部 本周 本月-->
                                <div class="time-search pull-left">
                                    <input type="hidden" id="dateType" name="dateType"/>
                                    <div class="all active-second" onclick="selectTime(this,'0')">全部</div>
                                    <div class="lastMonth" onclick="selectTime(this,'4')">上月</div>
                                    <div class="month" onclick="selectTime(this,'3')">本月</div>
                                    <div class="week" onclick="selectTime(this,'2')">本周</div>
                                </div>
                            </div>
                            <div class="col-lg-8 col-md-8 col-sm-8 col-xs-12">
                                <div class="pull-right reset-style">

                                    <button class="btn btn-default btn-senior " data-toggle="collapse" data-target="#filterContent"
                                            aria-expanded="false" aria-controls="filterContent" style="margin-right: 20px">高级筛选 &nbsp;&nbsp;<i class="mdi mdi-menu-down" style="font-size:18.5px;"></i>
                                    </button>

<!--                                    <div class="min-search pull-left" style="margin-left: 12px;">-->
<!--                                        <input class="form-control" type="text" placeholder="请输入所有人"-->
<!--                                               id="userName" name="userName">-->
<!--                                        <button class="btn btn-primary" type="button" id="searchTwo"-->
<!--                                                onclick="searchUserName()"-->
<!--                                                >-->

<!--                                            <i class="mdi mdi-magnify"></i><span>搜索</span>-->
<!--                                        </button>-->
<!--                                    </div>-->
<!--                                    onclick="addContact()"-->

                                    <button type="button" class="btn btn-success" onclick="addContact()"><i
                                            class="mdi mdi-plus-circle-outline"></i>新增日志
                                    </button>
                                </div>

                            </div>



                        </div>
                        <!--高级搜索条件-->
                        <div class="collapse filter-content" id="filterContent">
                            <div class="row reset-style">

                                <div class="form-group col-lg-2 col-md-3 col-sm-4 col-xs-6">
                                    <label for="logType">日志标题</label>
                                    <div class="form-content input-group">

                                        <input type="text" id="logName" class="form-control" placeholder="请输入日志标题" autocomplete="off">
                                    </div>

                                </div>

                                <div class="form-group col-lg-2 col-md-3 col-sm-4 col-xs-6">
                                    <label for="logType">日志类型</label>
                                    <div>
                                        <select class="form-control " id="logType" name="logType" type="text" title="全部">
                                            <option value="">全部</option>
                                            <option value="0">无</option>
                                            <option value="1">客户落实</option>
                                            <option value="2">日常沟通</option>
                                            <option value="3">需求挖掘</option>
                                            <option value="4">会员维护</option>
                                            <option value="5">促单</option>
                                        </select>
                                    </div>

                                </div>



                                <div class="form-group col-lg-4 col-md-4 col-sm-8 col-xs-12">
                                    <label class="control-label" for="startTm">日期区间</label>
                                    <div class="form-content input-group">
                                        <input type="text" id="startTm" class="form-control date-input" placeholder="请输入起始日期" autocomplete="off">
                                        <span class="input-group-addon">至</span>
                                        <input type="text" id="endTm" class="form-control date-input" placeholder="请输入截止日期" autocomplete="off">
                                    </div>
                                </div>

                                <div class="form-group col-lg-3 col-md-3 col-sm-8 col-xs-6">
                                    <label>&nbsp;</label>
                                    <div class="">
                                        <button class="btn btn-primary" type="button" id="btn-search" onclick="seniorSearch()">
                                            <i class="mdi mdi-magnify"></i><span>搜索</span>
                                        </button>
                                        <button class="btn btn-default" id="btn-reset">重置</button>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <table id="userWorkList" class="userWorkList"></table>
                    </div>


                </div>
            </div>
        </div>
    </div>


    <div class="modal fade" tabindex="-1" role="dialog" id="editModels">
        <div class="modal-dialog" role="document" style="width: 80%;">
            <div class="modal-content">
                <div class="modal-header">
                    <h4>修改</h4>
                </div>
                <div class="modal-body">
                    <form class="form-horizontal" autocomplete="off">
                        <input type="hidden" id="logId">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">标题</label>
                            <div class="col-sm-4">
                                <input id="workOrderTitle" type="text" class="form-control" maxlength="30" name="workOrderTitle" placeholder="请输入">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">类型</label>
                            <div class="col-sm-4">
                                <select class="form-control" id="workOrderType" type="text" placeholder="请选择" data-live-search="true" name="workOrderType">
                                    <option value="">请选择</option>
                                    <option value="0">无</option>
                                    <option value="1">客户落实</option>
                                    <option value="2">日常沟通</option>
                                    <option value="3">需求挖掘</option>
                                    <option value="4">会员维护</option>
                                    <option value="5">促单</option>
                                </select>
                            </div>
                        </div>

                        <div class="form-group">
                            <input type="hidden" class="cust-select">
                            <label class="col-sm-2 control-label">客户名称</label>
                            <div class="col-sm-4">
                                <select class="form-control customerId" id="customerIdMS"  type="text" placeholder="请选择" data-live-search="true" name="customerIdMS">

                                </select>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">描述您所述的内容</label>
                            <div class="col-sm-10">
                                <!--                        <textarea rows="8" name="workOrderContent" id="workOrderContent" class="form-control" maxlength="300"></textarea>-->
                                <div id="editor" ></div>
                                <!--                                onmouseup="show_element(event)"-->
                            </div>
                        </div>

                        <div style="margin-left: 20%;text-align: center;">
                            <!--                            onclick="saveWorkOrder()"-->
                            <button class="btn btn-primary form-group edit-submit" type="button" name="submit" style="margin-right: 30px;"
                                    onclick="editSubmit()"
                            >提交
                            </button>
                            <!--                            onclick="cancelAddWorkOrder()"-->
                            <button class="btn btn-default" type="button" data-dismiss="modal">取消</button>
                        </div>


                    </form>
                </div>
<!--                <div class="modal-footer">-->
<!--&lt;!&ndash;                    onclick="updateContact();"&ndash;&gt;-->
<!--                    <button type="button" class="btn btn-primary" >确定</button>-->
<!--                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>-->
<!--                </div>-->
            </div>
        </div>
    </div>

</body>
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="/js/main.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table-zh-CN.min.js"></script>
<script type="text/javascript" src="/js/popper.min.js"></script>
<script type="text/javascript" src="/js/jquery.cookie.min.js"></script>
<script src="/js/crm/common/city.js"></script>
<script src="/js/crm/common/common.js"></script>
<!--时间选择插件-->
<script src="/js/bootstrap-datetimepicker/moment.min.js"></script>
<script src="/js/jquery-confirm/jquery-confirm.min.js"></script>
<script src="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="/js/bootstrap-datetimepicker/locale/zh-cn.js"></script>
<!--日期选择插件-->
<script src="/js/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script src="/js/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<!-- 多选框下拉 -->
<script type="text/javascript" src="/js/bootstrap-multiselect.js"></script>
<script type="text/javascript" src="/js/bootstrap-select.js"></script>
<script type="text/javascript" src="/js/bootstrap.lyear.dropdowntree.min.js"></script>

<script type="text/javascript" src="/js/froala_editor.min.js"></script>
<script type="text/javascript" src="/js/froala_editor.pkgd.min.js"></script>

<script type="text/javascript" src="/js/bootstrapValidator.min.js"></script>

<!-- 子页面公用js -->
<script src="/js/crm/common/pageCommon.js"></script>
<script src="/js/crm/worklog/user/userWorkLogList.js"></script>
</html>